$("#downExcal").click(function () {
    window.location.href = "student/excal?token=" + localStorage['token'];
});

$("#submitExcal").click(function () {
    var formData = new FormData();
    // console.log()
    formData.append("file", $('#hidfile')[0].files[0]);
    formData.append("token", localStorage['token']);
    $.ajax({
        url: "/student/excal/save",
        type: 'POST',
        cache: false,
        data: formData,
        processData: false,
        contentType: false,
        dataType: "json",
        success: function (data) {
            if (data.code == 200) {
                message("新增学生成功", "", "success", 2000);
                dialog_close();
                addData_studentList(localStorage['pageSize'],localStorage['pageNumber']);
            } else {
                errorMessage(data.msg);
            }
        }
    })
})